package lab02.test12;

/**
 * Created by 123 on 2017/10/19.
 */
public  class Circle extends Shape {
    double area;
    double perimeter;
     double rahius;
    @Override
    void area() {
        double area;
        area = Math.PI*this. rahius *this. rahius;
        System.out.println("面积位；"+area);
    }

    @Override
    void perimeter() {
        double perimeter;
        perimeter=Math.PI*2*this.rahius;
        System.out.println("周长为"+perimeter);

    }
}
